package com.ruoyi.shop.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 供应商对象 supplier
 * 
 * @author teio
 * @date 2024-06-05
 */
public class Supplier extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 供应商id */
    @Excel(name = "供应商id")
    private Long sid;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supplierName;

    /** 供应商地址 */
    @Excel(name = "供应商地址")
    private String address;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contactPerson;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 供应商状态（0正常往来，1暂停来往，2，不再来往） */
    @Excel(name = "供应商状态", readConverterExp = "0=正常往来，1暂停来往，2，不再来往")
    private Long supplierStatus;

    public void setSid(Long sid) 
    {
        this.sid = sid;
    }

    public Long getSid() 
    {
        return sid;
    }
    public void setSupplierName(String supplierName) 
    {
        this.supplierName = supplierName;
    }

    public String getSupplierName() 
    {
        return supplierName;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setContactPerson(String contactPerson) 
    {
        this.contactPerson = contactPerson;
    }

    public String getContactPerson() 
    {
        return contactPerson;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setSupplierStatus(Long supplierStatus) 
    {
        this.supplierStatus = supplierStatus;
    }

    public Long getSupplierStatus() 
    {
        return supplierStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("sid", getSid())
            .append("supplierName", getSupplierName())
            .append("address", getAddress())
            .append("contactPerson", getContactPerson())
            .append("phone", getPhone())
            .append("supplierStatus", getSupplierStatus())
            .toString();
    }
}
